beginoutdoorscript;
variables;
   int choice;
body;
beginstate 0;

break;
beginstate 1;

break;
beginstate 2;

break;
beginstate 10;
    if (get_flag(200, 0) == 0)
         {
         message_dialog("It looks like someone has buried something here.", "");
         play_sound(120);
         message_dialog("You dig, dig and dig, but you don't find anything.", "");
         }
    set_flag(200, 0, 1);
break;
beginstate 11;
    if (get_flag(200, 1) == 0)
    {
        reset_dialog();
        add_dialog_str(0, "There is a hole in the ground. Stairs are leading down from it. Do you wan't to explore?", 0);
        add_dialog_choice(0, "No");
        add_dialog_choice(1, "Yes");
        choice = run_dialog(0);
        if (choice == 2)
        {
            
            message_dialog("You realize too late that you have stumbled upon a bandit infestation. The bandits don't seem to like you.", "");
            create_out_spec_enc(0);
        }
    }
break;
beginstate 12;
    set_flag(200, 1, 1);
    message_dialog("You loot the bandit lair. You don't find any treasure, but you find an interesting book about the rogues you fought.", "According to it the rogues were Avernites who fled the caves a long time ago! Now this is something that you didn't expect.");
    
break;
beginstate 13;
    run_scenario_script(24);
break;